package org.wlc.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @author 王立朝
 * @date 2022/6/4
 * @description:
 */
@RestController

@ConfigurationProperties(prefix = "myCode")
public class TestController {

    private List<Map<String, String>> params;

    @GetMapping("/test")
    public String test(){
        System.out.println("maps = " + params);
        return "hello";
    }


}
